package java3_27;

import java.util.Scanner;

/**
 *2:输入一个字符串，去掉非数字字符，把剩下的转换成整数，
 *并输出，比如AbcF2FHk30%$!,则结果是230
 */
public class Homework1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str1 = scanner.next();
        String str2 = str1.replaceAll("\\D","");
        int x = Integer.parseInt(str2);
        System.out.println(x);
    }
}
